package cn.itsource.ymcc.openfeign;

import cn.itsource.ymcc.openfeign.fallbackfactory.KillOpenFeignFallbackFactory;
import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-kill",fallbackFactory = KillOpenFeignFallbackFactory.class )
public interface KillOpenFeign {
    @GetMapping("/killCourse/getCourseId/{id}")
    public JsonResult oneByOrder(@PathVariable("id")Long id);
}
